package qj.tool.db.orientdb;

import java.lang.reflect.Field;
import java.util.HashMap;

import qj.tool.db.Key;
import qj.util.funct.P2;

import com.orientechnologies.orient.core.record.impl.ODocument;

public interface ClassConverter<A> {
	KeyImpl getKey(A obj);
	void setKey(Key key, A obj);
	P2<Object,ODocument> ote();
	A eto(ODocument e);
	HashMap<String,Field> fields();
}
